#include <iostream>
#include <iomanip>
#include <fstream>
#include <cstdlib>
#include <ctime>
#include <algorithm>
#include <numeric>
#include <vector>
#include <queue>
#include <iterator>
#include <functional>
#include <boost/bind.hpp>
#include <boost/timer.hpp>
#include <boost/shared_ptr.hpp>

using namespace std;

int main(int argc, char **argv)
{
	queue<int> Q;
	srand(static_cast<int>(time(0)));
	for(int i=0;i<10;++i)
		Q.push(rand());

        while(!Q.empty())	
	{
		cout<<"front <-> "<<setw(10)<<Q.front()
		    <<"  back <-> "<<setw(10)<<Q.back()<<endl;
		Q.pop();
	}

	return 0;
}
